

var keys=getmessage('key');

$.ajax({
    type:"get",
    url:'/posts/search/'+keys,
    success:function(res){
        var html=template("searchTpl",{data:res});
        $("#articleBox").html(html);
    }
})